import React from 'react';
import { useRouteMatch } from 'umi';

export default function (props: any) {
  // console.log(props.match.params);

  let { params } = props.match;

  console.log(useRouteMatch());

  return (
    <fieldset>
      <legend>动态路由</legend>
      <h1>动态路由参数{params.id}</h1>
    </fieldset>
  );
}
